package com.example.myapplication.apter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.example.myapplication.R;

public class Smart_homeApter  extends  RecyclerView.Adapter<Smart_homeApter.myhot>{
    private Context context;

    public Smart_homeApter(Context context) {
        this.context = context;
    }

    @NonNull
    @Override
    public myhot onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View inflate = LayoutInflater.from(context).inflate(R.layout.item_smart_home,null);
        return new Smart_homeApter.myhot(inflate);
    }

    @Override
    public void onBindViewHolder(@NonNull myhot holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 3;
    }

    class myhot extends RecyclerView.ViewHolder{
        public myhot(@NonNull View itemView) {
            super(itemView);
        }
    }
}
